package cn.oa.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class SystemPermission implements Serializable {

	/**
	 * 二级菜单
	 */
	private List<SystemPermission> secondPermission = new ArrayList<SystemPermission>();

	public List<SystemPermission> getSecondPermission() {
		return secondPermission;
	}

	public void setSecondPermission(List<SystemPermission> secondPermission) {
		this.secondPermission = secondPermission;
	}

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column system_permission.permission_id
	 *
	 * @mbggenerated
	 */
	private Integer permissionId;

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column system_permission.permission_name
	 *
	 * @mbggenerated
	 */
	private String permissionName;

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column system_permission.parent_id
	 *
	 * @mbggenerated
	 */
	private Integer parentId;

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column system_permission.parent_name
	 *
	 * @mbggenerated
	 */
	private String parentName;

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column system_permission.permission_type
	 *
	 * @mbggenerated
	 */
	private Byte permissionType;

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column system_permission.permission_url
	 *
	 * @mbggenerated
	 */
	private String permissionUrl;

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column system_permission.permission_code
	 *
	 * @mbggenerated
	 */
	private String permissionCode;

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column system_permission.permission_icon
	 *
	 * @mbggenerated
	 */
	private String permissionIcon;

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database column system_permission.permission_sort
	 *
	 * @mbggenerated
	 */
	private Byte permissionSort;

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the
	 * database table system_permission
	 *
	 * @mbggenerated
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column system_permission.permission_id
	 *
	 * @return the value of system_permission.permission_id
	 *
	 * @mbggenerated
	 */
	public Integer getPermissionId() {
		return permissionId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column system_permission.permission_id
	 *
	 * @param permissionId the value for system_permission.permission_id
	 *
	 * @mbggenerated
	 */
	public void setPermissionId(Integer permissionId) {
		this.permissionId = permissionId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column system_permission.permission_name
	 *
	 * @return the value of system_permission.permission_name
	 *
	 * @mbggenerated
	 */
	public String getPermissionName() {
		return permissionName;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column system_permission.permission_name
	 *
	 * @param permissionName the value for system_permission.permission_name
	 *
	 * @mbggenerated
	 */
	public void setPermissionName(String permissionName) {
		this.permissionName = permissionName == null ? null : permissionName.trim();
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column system_permission.parent_id
	 *
	 * @return the value of system_permission.parent_id
	 *
	 * @mbggenerated
	 */
	public Integer getParentId() {
		return parentId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column system_permission.parent_id
	 *
	 * @param parentId the value for system_permission.parent_id
	 *
	 * @mbggenerated
	 */
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column system_permission.parent_name
	 *
	 * @return the value of system_permission.parent_name
	 *
	 * @mbggenerated
	 */
	public String getParentName() {
		return parentName;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column system_permission.parent_name
	 *
	 * @param parentName the value for system_permission.parent_name
	 *
	 * @mbggenerated
	 */
	public void setParentName(String parentName) {
		this.parentName = parentName == null ? null : parentName.trim();
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column system_permission.permission_type
	 *
	 * @return the value of system_permission.permission_type
	 *
	 * @mbggenerated
	 */
	public Byte getPermissionType() {
		return permissionType;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column system_permission.permission_type
	 *
	 * @param permissionType the value for system_permission.permission_type
	 *
	 * @mbggenerated
	 */
	public void setPermissionType(Byte permissionType) {
		this.permissionType = permissionType;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column system_permission.permission_url
	 *
	 * @return the value of system_permission.permission_url
	 *
	 * @mbggenerated
	 */
	public String getPermissionUrl() {
		return permissionUrl;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column system_permission.permission_url
	 *
	 * @param permissionUrl the value for system_permission.permission_url
	 *
	 * @mbggenerated
	 */
	public void setPermissionUrl(String permissionUrl) {
		this.permissionUrl = permissionUrl == null ? null : permissionUrl.trim();
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column system_permission.permission_code
	 *
	 * @return the value of system_permission.permission_code
	 *
	 * @mbggenerated
	 */
	public String getPermissionCode() {
		return permissionCode;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column system_permission.permission_code
	 *
	 * @param permissionCode the value for system_permission.permission_code
	 *
	 * @mbggenerated
	 */
	public void setPermissionCode(String permissionCode) {
		this.permissionCode = permissionCode == null ? null : permissionCode.trim();
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column system_permission.permission_icon
	 *
	 * @return the value of system_permission.permission_icon
	 *
	 * @mbggenerated
	 */
	public String getPermissionIcon() {
		return permissionIcon;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column system_permission.permission_icon
	 *
	 * @param permissionIcon the value for system_permission.permission_icon
	 *
	 * @mbggenerated
	 */
	public void setPermissionIcon(String permissionIcon) {
		this.permissionIcon = permissionIcon == null ? null : permissionIcon.trim();
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value
	 * of the database column system_permission.permission_sort
	 *
	 * @return the value of system_permission.permission_sort
	 *
	 * @mbggenerated
	 */
	public Byte getPermissionSort() {
		return permissionSort;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of
	 * the database column system_permission.permission_sort
	 *
	 * @param permissionSort the value for system_permission.permission_sort
	 *
	 * @mbggenerated
	 */
	public void setPermissionSort(Byte permissionSort) {
		this.permissionSort = permissionSort;
	}

	@Override
	public String toString() {
		return "SystemPermission [secondPermission=" + secondPermission + ", permissionId=" + permissionId
				+ ", permissionName=" + permissionName + ", parentId=" + parentId + ", parentName=" + parentName
				+ ", permissionType=" + permissionType + ", permissionUrl=" + permissionUrl + ", permissionCode="
				+ permissionCode + ", permissionIcon=" + permissionIcon + ", permissionSort=" + permissionSort + "]";
	}

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to
	 * the database table system_permission
	 *
	 * @mbggenerated
	 */

}